/**
 * RetryOnExceptionStrategyFactorySpec.java
 * 
 * Created on Jun 20, 2008 at 7:34:04 PM
 */
package org.lego4j;

import org.junit.Ignore;
import org.junit.Test;

/**
 * @author <a href="alexguev@gmail.com">Alexei Guevara</>
 * @version $Revision:$ updated on $Date:$ by $Author:$
 */
public class AbstractLego4jMethodInterceptorSpec {
    
    @Test @Ignore
    public void shouldFail() throws Exception {
    }
    
//    private CachingRetryOnExceptionPolicyFactory myStrategyFactory;
//    
//    @Before
//    public void createStrategyFactory() {
//        myStrategyFactory = new CachingRetryOnExceptionPolicyFactory(); 
//    }
//    
//    @Test
//    public void shouldReturnCachedStrategy() throws Exception {
//        IRetryOnExceptionPolicy strategyFor1stInvocation = 
//            myStrategyFactory.createFrom( Foo.class.getMethod( "throwsCheckedEx", new Class[]  { Exception.class } ));
//        
//        IRetryOnExceptionPolicy strategyFor2ndInvocation = 
//            myStrategyFactory.createFrom( Foo.class.getMethod( "throwsCheckedEx", new Class[]  { Exception.class } ));
//        
//        assertSame( strategyFor1stInvocation, strategyFor2ndInvocation );
//    }
    
}
